package com.yang.miniostudy01.config;

import io.minio.MinioClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class Config {
    //链式编程 构建MinioClient对象
    @Bean
    public MinioClient minioClient(){
        return MinioClient.builder()
                .region("zh-east-8")
                .endpoint("http://192.168.1.18:9000")
                .credentials("minioadmin","minioadmin")
                .build();
    }
}
